//
//  FLInterfaceManager+DuoBao.h
//  Pods
//
//  Created by LinXiaoBin on 16/3/21.
//
//

#import "FLInterface.h"
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "BusinessInterfaceDefine.h"

@class FLInterfaceForEmoji;
@protocol FLInterfaceBusinessParamDelegate;

@interface FLInterfaceManager(Business)

/**
 参数处理策略
 */
@property (nonatomic, strong) id<FLInterfaceBusinessParamDelegate> businessParam;

/**
 response处理策略
 */
@property (nonatomic, strong) id<FLResponseSerializerDelegate> businessResponseSerializer;


#pragma mark - ......::::::: 业务接口 :::::::......

/**
 *  获取最新资源列表
 *  @param PageIndex    页索引，默认1
 *  @param PageSize     每页主题数，默认10
 */
- (void)requestGetDatasWithPageIndex:(NSUInteger)PageIndex PageSize:(NSUInteger)PageSize succeedBlock:(FLInterfaceSucceedBlock_t)succeedBlock failedBlock:(FLInterfaceFailedBlock_t)failedBlock;

- (void)requestPostDatasWithPageIndex:(NSUInteger)PageIndex
                             PageSize:(NSUInteger)PageSize
                         succeedBlock:(FLInterfaceSucceedBlock_t)succeedBlock
                          failedBlock:(FLInterfaceFailedBlock_t)failedBlock;

/**
 *  @brief  资源上传生成url接口
 *  @param data          资源数据
 *  @param fileExt       资源后缀
 */
- (void)requestUploadResourcesWithData:(NSData *)data fileExt:(NSString *)fileExt succeedBlock:(FLInterfaceSucceedBlock_t)succeedBlock failedBlock:(FLInterfaceFailedBlock_t)failedBlock;

@end
